//（1）生成[-10，10)之间的随机数PseudoNumber，并输出PseudoNumber；
//（2）输出PseudoNumber的二进制、十六进制形式；
import java.util.Random;
public class PseudoNumber
{
  public static void main(String []args)
  {
    Random generator = new Random();
    float num;

    num = generator.nextFloat()*20-10;
    System.out.println("A Random integer:"+num);

    Integer num1;
    num1 = (int)num;

    System.out.println("PseudoNumber ToBinaryString:"+Integer.toBinaryString(num1));
    System.out.println("PseudoNumber TohexString:"+Integer.toHexString(num1));
    }
  }  
    
   



